package com.xjscrm.console.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("获取客户群成员")
public class WwGroupMemberVo {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("运营商id")
    private Long merId;

    @ApiModelProperty("群wxid")
    private String groupWxid;

    @ApiModelProperty("成员wxid")
    private String wxid;

    @ApiModelProperty("成员昵称")
    private String nick;

    @ApiModelProperty("成员群内备注")
    private String nickRemark;

    @ApiModelProperty("头像")
    private String himg;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("邀请人wxid")
    private String inviterWxid;
    @ApiModelProperty("邀请人微信昵称")
    private String inviterWxName;

    @ApiModelProperty("成员类型(0-普通成员；1-机器人)")
    private Integer type;

    @ApiModelProperty("企业id")
    private String corpId;

    @ApiModelProperty("身份（0-群主；1-管理员；2-普通成员）")
    private Integer identity;

    @ApiModelProperty("最近发言时间")
    private Integer recentSpeakTime;

    @ApiModelProperty("添加场景（0-直接邀请进群；1-链接入群；2-扫码进群）")
    private Integer scene;

    @ApiModelProperty("创建时间")
    private Integer createTime;

    @ApiModelProperty("修改时间")
    private Integer updateTime;

    @ApiModelProperty("是否是好友 0-否，1-是")
    private Integer ifFriend;

    private String sceneDesc;

    public void  setSceneDesc(){
        String sceneDesc="";
        if(this.scene!=null){
            switch (this.scene){
                case 0:
                    sceneDesc="直接邀请进群";
                    break;
                case 1:
                    sceneDesc="链接入群";
                    break;
                case 2:
                    sceneDesc="扫码进群";
                    break;
                default:
                    break;
            }
        }

         this.sceneDesc=sceneDesc;
    }
}
